<template>
  <div>
    <button @click="doClick">
      <slot>
        一个按钮
      </slot>
    </button>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      required: true
    },
    age: {
      type: Number,
      required: true
    },
    name: {
      type: String,
      required: true
    }
  },
  methods: {
    doClick() {
      this.$emit('input', this.value + 100)
      this.$emit('update:age', this.a + 100)
      this.$emit('update:name', '李四')
    }
  }
}
</script>

<style>

</style>
